<?php

namespace app\admin\validate;
use think\Validate;

class Link extends Validate
{
    protected $rule = [
        'name'	 	=> 'require|unique:link',
        'url'	 	=> 'require|url',
    ];

    protected $message = [
        'name.require' 		=> '名称不能为空',
        'name.unique'  		=> '名称已存在',
        'url.require' 		=> '链接不能为空',
        'url.url'  			=> '链接不合法',
    ];
}
